﻿using BW.Model;
using Microsoft.EntityFrameworkCore;

namespace BW.DAL
{
    public class MyDBContext : DbContext
    {
        /// <summary>
        /// ef上下文配置
        /// </summary>
        /// <param name="options"></param>
        public MyDBContext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 创建数据库表名
        /// </summary>
        public DbSet<UserModel> User { get; set; }
        public DbSet<UserTypeModel> UserType { get; set; }
        public DbSet<ZJTypeModel> ZJType { get; set; }
    }
}
